package com.fmatos.amazingwallpapers.image.database.dto;

public class ImageRow {
	
	// possible image states are: 
	// - new (has url but never tried to download)
	// - downloaded and available
	// - downloaded and corrupt
	// - downloaded and deleted
	// - cant download: firewall issue
	// - cant download: another error like 404 not found

	private String album;
	private long id;
	private String url;
	private String caption;
	
	private String file;
	private String description;
	
	private long timestamp;
	
	public String getAlbum() {
		return album;
	}
	public void setAlbum(String album) {
		this.album = album;
	}
	public String getDescription() {
		return description;
	}
	public void setDescription(String description) {
		this.description = description;
	}
	
	public long getId() {
		return id;
	}
	public void setId(long id) {
		this.id = id;
	}
	public String getUrl() {
		return url;
	}
	public void setUrl(String url) {
		this.url = url;
	}
	public String getFile() {
		return file;
	}
	public void setFile(String file) {
		this.file = file;
	}

	@Override
	public String toString() {
		if ( caption != null ) {
			return caption;
		} else {
			return "testing";
		}
	}
	
	public String getCaption() {
		return caption;
	}
	public void setCaption(String caption) {
		this.caption = caption;
	}
	public long getTimestamp() {
		return timestamp;
	}
	public void setTimestamp(long timestamp) {
		this.timestamp = timestamp;
	}


}
